package cn.maihe.elg.operation.centers.quanzhou.dto.handler;

import cn.maihe.elg.operation.centers.epoint.dto.EpointBaseRespDTO;
import lombok.Getter;
import lombok.Setter;

/**
 * @Description 泉州中心退保申请响应DTO
 * @Author Generated
 * @Date 2025/01/21
 */
@Getter
@Setter
public class QuanzhouSurrenderRespDTO extends EpointBaseRespDTO {
    
    /**
     * 退保跳转地址（无需跳转则为空）
     */
    private String quiturl;
    
    public QuanzhouSurrenderRespDTO() {
        super();
    }
    
    public QuanzhouSurrenderRespDTO(String code, String message, String quiturl) {
        super(code, message);
        this.quiturl = quiturl;
    }
    
    public static QuanzhouSurrenderRespDTO success(String message, String quiturl) {
        QuanzhouSurrenderRespDTO resp = new QuanzhouSurrenderRespDTO("1", message, quiturl);
        resp.setData(new QuitData(quiturl));
        return resp;
    }

    private void setData(QuitData quitData) {
    }

    public static QuanzhouSurrenderRespDTO failure(String message) {
        return new QuanzhouSurrenderRespDTO("0", message, null);
    }

    public void setSurrenderurl(String surrenderUrl) {
    }

    @Getter
    @Setter
    public static class QuitData {
        private String quiturl;
        
        public QuitData(String quiturl) {
            this.quiturl = quiturl;
        }
    }
}